package com.project.xsf.controller;

import com.project.xsf.entity.TAssessQuestion;
import com.project.xsf.service.TAssessQuestionService;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@CrossOrigin
@RestController
@RequestMapping("/tAssessQuestion")
public class TAssessQuestionController {
    @Autowired
    private TAssessQuestionService tAssessQuestionService;
    @GetMapping("/queryAllQuestion")
//   (风险测评) 膳食摄入情况及饮食情况
    public List<TAssessQuestion> queryAllQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(1);
        return tAssessQuestions;
    }
    @GetMapping("/querySunQuestion")
//   (体质测评) 阳虚体质
    public List<TAssessQuestion> querySunQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(4);
        return tAssessQuestions;
    }
    @GetMapping("/queryRainQuestion")
//   (体质测评) 阴虚体质
    public List<TAssessQuestion> queryRainQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(5);
        return tAssessQuestions;
    }
    @GetMapping("/queryQiQuestion")
//   (体质测评) 气虚体质
    public List<TAssessQuestion> queryQiQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(6);
        return tAssessQuestions;
    }
    @GetMapping("/queryPingQuestion")
//   (体质测评) 平和体质
    public List<TAssessQuestion> queryPingQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(7);
        return tAssessQuestions;
    }
    @GetMapping("/queryTanQuestion")
//   (体质测评) 痰湿体质
    public List<TAssessQuestion> queryTanQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(8);
        return tAssessQuestions;
    }
    @GetMapping("/queryShiQuestion")
//   (体质测评) 湿热体质
    public List<TAssessQuestion> queryShiQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(9);
        return tAssessQuestions;
    }
    @GetMapping("/queryXueQuestion")
//   (体质测评) 血瘀体质
    public List<TAssessQuestion> queryXueQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(10);
        return tAssessQuestions;
    }
    @GetMapping("/queryYuQuestion")
//   (体质测评) 气郁体质
    public List<TAssessQuestion> queryYuQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(11);
        return tAssessQuestions;
    }
    @GetMapping("/queryTeQuestion")
//   (体质测评) 特禀体质
    public List<TAssessQuestion> queryTeQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(12);
        return tAssessQuestions;
    }
    @GetMapping("/queryQPZQuestion")
//   (心理) 强迫症化
    public List<TAssessQuestion> queryQPZQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(13);
        return tAssessQuestions;
    }
    @GetMapping("/queryJLQuestion")
//   (心理) 焦虑症化
    public List<TAssessQuestion> queryJLQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(14);
        return tAssessQuestions;
    }
    @GetMapping("/queryKBQuestion")
//   (心理) 恐怖症化
    public List<TAssessQuestion> queryKBQuestion(){
        List<TAssessQuestion> tAssessQuestions = tAssessQuestionService.queryAllQuestion(15);
        return tAssessQuestions;
    }

}
